package com.huaixia.cozeapi.controller;

import com.huaixia.cozeapi.config.CozeConfig;
import com.huaixia.cozeapi.domain.CozeApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("api")
public class DemoController {

    @Autowired
    private CozeConfig cozeConfig;

    @GetMapping("/hello")
    public String hello() {
        Map<String, String> stringStringMap = cozeConfig.BotTokenMap();
        return stringStringMap.toString();
    }
}
